<template>
  <header class="wrap">
    <i class="iconfont icon-left" @click="goBack"></i>
    <slot name="search"></slot>
    <span><slot></slot></span>
    <i class="iconfont icon-More"></i>
  </header>
</template>

<script>
export default {
    methods: {
      goBack() {
          this.$router.go(-1)
      }  
    }
};
</script>

<style lang="scss" scoped>
.wrap {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 63px;
  line-height: 63px;
  padding: 0 14px;
  font-size: 24px;
  background: #f7f7f7;
  text-align: center;
  box-sizing: border-box;

  .icon-left {
    // position: absolute;
    // top: 0;
    // left: 15px;
    font-weight: 700;
    font-size: 28px;
  }

  .icon-More {
    font-size: 28px;
  }

  span {
    text-align: center;
  }
}
</style>